package cn.edu.sjtu.stap.hg.builder;

public class DefaultHgBuilderFactory extends IHgBuilderFactory {
    private static DefaultHgBuilderFactory instance = null;

    public DefaultHgBuilderFactory() {
        // Empty.
    }

    public static DefaultHgBuilderFactory getInstance() {
        if (instance == null) {
            instance = new DefaultHgBuilderFactory();
        }
        return instance;
    }

    public IHgBuilder getHgBuilder() {
        //return DefaultHgBuilder.getInstance();
        return new DefaultHgBuilder();
    }
}
